const express = require("express");
const router = express.Router();
const multer = require('multer');
const file = require('../module/fileEdit.js')

router.post("/setPath", (req, res) => {
	file.setPath(req.body).then(failList => {
		res.json({
			state: '200',
			msg: '操作成功',
			data: failList
		});
	}).catch(err => {
		res.json({
			state: '200',
			msg: '操作失败',
			data: err
		});
	});
});
module.exports = router;
